package com.tizona.dao;

import java.sql.SQLException;
import java.util.Set;
import java.util.LinkedHashSet;
import java.util.Calendar;
import java.math.BigDecimal;

import com.tizona.entity.*;

public interface SplitDAO extends BaseDAO  {

    public Split getActiveSplit(Session session) throws SQLException;

    public void makeTransaction(SemiTransaction trans) throws SQLException;

    public void removeTemporaryChunk(final Chunk chunk) throws SQLException;

    public void SaveOrUpdate(SemiTransaction trans) throws SQLException;

    public void SaveOrUpdate(Split split) throws SQLException;

    public void SaveOrUpdate(TrafficSplit traf) throws SQLException;

    public void markProcessedChunk(final Chunk chunk) throws SQLException;

    public void CloseAllSplits(final Session session) throws SQLException;

    public LinkedHashSet <Split> loadSplits(Session session);

    public void saveTransaction(String ssId) throws SQLException;

    public void commitTransaction(String ssId) throws SQLException;

    public void rollbackTransaction(String ssId) throws SQLException;

}

